


export default defineNuxtPlugin((nuxtApp) => {
  return {
    provide: {
      setHead: (page: String) => {
          const store = useStateStore()

         let {title,keywords,description} = store.headJson[store.locale][page]
          return {
            title,
            meta:[
              {hid: 'keywords', name: 'keywords', content: keywords},
              {hid: 'description', name: 'description', content: description}
            ]
          }
        }
      }
    };
})
